import logging


formatter=logging.Formatter("%(module)s:%(funcName)s:%(name)s:%(levelname)s:%(message)s!")


import sys
ch = logging.StreamHandler(sys.stdout)
ch.setFormatter(formatter)

LEVEL=100
LEVEL=logging.DEBUG

def getLogger(name):
    logger=logging.getLogger(name)
    logger.addHandler(ch)
    logger.setLevel(LEVEL)

    return logger
